package com.example.assignment7.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("hello")
public class AspectController {

    @GetMapping
    public void getHello(){
        System.out.println("this is getMapping");
    }

    @PostMapping
    public void HelloAdd(){
        System.out.println("this is postMapping");
    }
}
